package com.hmall.common.client;

import com.hmall.common.dto.Item;
import com.hmall.common.dto.PageDTO;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.awt.event.ItemEvent;

@Component
@FeignClient("itemservice")
public interface MyFeignClient {

    @GetMapping("/item/list")
    PageDTO<Item> findPage(@RequestParam("page") Integer curPage,@RequestParam("size") Integer size);
}
